package com.lin.service.customer;

import com.lin.common.error.CustomRuntimeException;
import com.lin.controller.req.AgreeCustomerReqMsg;
import com.lin.controller.req.CustomerReqMsg;
import com.lin.controller.req.UpdateCustomerReqMsg;
import com.lin.controller.res.CustomerPageResMsg;
import com.lin.controller.res.CustomerResMsg;
import com.lin.po.Customer;

import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface CustomerService {

    /**
     * 获取所有的
     * @return
     */
    Map<Long,String> listnations();

    Integer updateCustomer(UpdateCustomerReqMsg reqMsg);

    Integer updatePortrait(Long id,byte[] portrait) throws IOException, CustomRuntimeException;

    CustomerResMsg detail(Long customerId);

    /**
     * 对新增（注册）的用户进行新增或者后续更新
     * @param reqMsg
     * @return
     */
    Integer save(CustomerReqMsg reqMsg);

}
